package com.patterns.mediator.SaleComputer;

/**
 * Created by Xiao Yiyun on 2017/4/29.
 * 修改后的采购管理
 */
public class Purchase extends  AbstractColleague {

    public Purchase(AbstractMediator mediator) {
        super(mediator);
    }
    //采购电脑
    public void buyComputer(int number) {
        super.mediator.execute("purchase.buy", number);
    }
    //不采购电脑
    public void refuseBuyComputer() {
        System.out.println("不采购电脑");
    }
 }
